<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        /* The alert message box */
        .alert {
            padding: 20px;
            background-color: #f44336; /* Red */
            color: white;
            margin-bottom: 15px;
        }

        /* The close button */
        .closebtn {
            margin-left: 15px;
            color: white;
            font-weight: bold;
            float: right;
            font-size: 22px;
            line-height: 20px;
            cursor: pointer;
            transition: 0.3s;
        }

        /* When moving the mouse over the close button */
        .closebtn:hover {
            color: black;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="alert" v-if="loginStatus">
        <span class="closebtn" onclick="this.parentElement.style.display='none';">&times;</span>
        正在登陆，请稍后。
    </div>
    <button @click="login" type="button">Login</button>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>

<script>
    let v = new Vue({
        el: "#app",
        data() {
            return {
                loginStatus: false,
            }
        },
        methods: {
            login: function () {
                v.loginStatus = true;
                axios.get("/wemedia/ddUser/skip").then(function (response) {
                    if (response.data.state === 200)
                        location.href = "home_page.html";
                })
            }
        }
    })
</script>
</body>
</html>